//
//  ThreadObject.m
//  RBIOSBase
//
//  Created by ren on 30/10/2017.
//  Copyright © 2017 bryan. All rights reserved.
//

#import "ThreadObject.h"

@interface ThreadObject ()

//@property (nonatomic, strong) NSLock *lock;
@property (nonatomic, assign) dispatch_queue_t queue;

@end

@implementation ThreadObject

@synthesize increaseInt = _increaseInt;

- (instancetype)init
{
	if (self = [super init]) {
//		_lock = [NSLock new];
	}
	return self;
}

- (void)setIncreaseInt:(NSInteger)increaseInt
{
//	@synchronized (self) {
//	[_lock lock];
		NSLog(@"setter--->%ld", increaseInt);
	    _increaseInt = increaseInt;
//	[_lock unlock];
//	}
}

- (NSInteger)increaseInt
{
//	@synchronized (self) {
//	[_lock lock];
		NSLog(@"getter-->%ld", _increaseInt);
//	[_lock unlock];
		return _increaseInt;
	
//	}
}

@end
